import React, { Component } from 'react';
import "../../styles/Index/Home/Input.scss"
import {withRouter} from 'react-router-dom'

class Input extends Component {
    render() {
        return (
            <div className='input-box'> 
                <input onClick={()=>{this.props.history.push('/search')}} type="text" placeholder='搜索你想要的商品' />
                <span>♘</span>
            </div>
        );
    }
}

export default withRouter(Input);